<?php  

namespace app\admin\controller;

use think\Controller;
use think\Request;
use think\Db;


class Huifu extends Admin
{
	public function hui()
	{

     $list = Db::name('to_recomment')->select();
     // var_dump($list);die;
     $this->assign('list',$list);  
    




     return $this->fetch('huifu/huifu');
	}


	 //评论删除
   public function delete($id)
   {

   	 $result = Db::name('to_recomment')->delete($id);
     
     if ($result >0 ) {
       $info['status'] = true;
     }else{
       $info['status'] = false;
     }

     return $info;




   	 return $this->fetch('huifu/huifu');
   }

}